home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
demo
/
medmfc.zip
/
CHANGES.DOC
< prev
next >
Wrap
Text File
|
1994-08-17
|
3KB
|
139 lines
7/15/94
-------
Added ME_INSERTSTRING message
-----------------------------
ME_INSERTSTRING
Inserts a string into the editor at the current position.
Parameters
wParam is ME_OVERSTRIKE_MODE if you want to overstrike the existing
text at the current position in the buffer. Any other value of
wParam will insert the text at the current position in the buffer.
lParam is a far pointer to the text to insert. The text may have
embedded tab characters (\t) or newlines (\n).
Returns
TRUE if the text was inserted, FALSE if not.
Example
SendMessage(hWndEdit, ME_INSERTSTRING, ME_INSERT_MODE,
(LONG) (LPSTR) "This is line 1\nAnd this is line 2\n");
Added WM_PARENTNOTIFY message
-----------------------------
The edit control sends its ancestors the WM_PARENTNOTIFY message.
See the Windows SDK documentation for more information on this
message.
7/21/94
-------
Added SEARCH_SELECTMATCH option to the Searching options.
If this is true, then the matched text is highlighted and selected.
Added some Chicago style messages :
EM_EXGETSEL
wParam is 0
lParam is a far pointer to a CHARRANGE structure
EM_GETSELTEXT
wParam is 0
lParam is a far pointer to a buffer which the text will be placed into
EM_EXSETSEL
wParam is 0
lParam is a far pointer to a CHARRANGE structure
EM_EXLINEFROMCHAR
wParam is 0
lParam is index
EM_SETBKGNDCOLOR
wParam is TRUE to use system color, FALSE for RGB value in lParam
lParam is the RGB value
Returns: the old background color
8/3/94
------
Changes to ME_TOGGLEWORDWRAP
wParam can be
WORDWRAP_OFF - turns wordwrap off
WORDWRAP_ON - turns wordwrap on
WORDWRAP_TOGGLE - toggles wordwrap mode
Added ME_REMOVEBOOKMARK
ME_REMOVEBOOKMARK
Removes one or more bookmarks from the editing buffer.
wParam is the letter of the bookmark. It can be 'a' through 'z'. If
wParam is the special value BOOKMARK_REMOVEALL, then all of the
bookmarks associated with the editing buffer will be removed.
lParam is not used
Returns
TRUE
8/8/94
------
Added WM_SETREDRAW message
WM_SETREDRAW
Sets the refresh state of the buffer.
Parameters
wParam can be zero or non-zero. If it is zero, then buffer refreshes
will be disabled. This means that mulitple editing operations can
be performed without the buffer refreshing the window after each
operation. If wParam is non-zero, then refreshing will be enabled.
lParam is not used.
Returns
Nothing
Giving the Parent a Shot at Messages
------------------------------------
Before the editor control processes the following messages :
WM_MBUTTONDOWN
WM_RBUTTONDOWN
WM_LBUTTONDBLCLK
WM_MBUTTONDBLCLK
WM_RBUTTONDBLCLK
it first sends these messages up to the parent. If the parent processes
these messages, it should return a non-zero value to the editor control.
If it returns 0 to the editor, then the editor will take its default
action for these messages.
Example :
In the parent's window procedure :
case WM_RBUTTONDOWN :
PopupMyMenu(); /* Put up a popup menu */
return TRUE; /* Yes, I processed it */
case WM_MBUTTONDOWN :
case WM_LBUTTONDBLCLK :
case WM_MBUTTONDBLCLK :
case WM_RBUTTONDBLCLK :
return FALSE;